package com.example.testdemo.demos.web.controller;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import lombok.Data;
import org.apache.poi.ss.usermodel.FillPatternType;

@Data
public class DemoData {
	@ColumnWidth(50)  // 定义宽度
	@ExcelProperty("用户名") // 定义列名称
	private String username;
	@ExcelProperty("密码")
	private String password;
}